<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单提交</title>
</head>
<body>
<hr>
get请求<br>
<form action="/formgetmethod/" method="get">
    用户名：<input name="username" type="text"><br>
    密 码：<input name="password" type="password"><br>
    <input type="submit" value="登录">
</form>
<hr>
post请求<br>
<form action="/formpostmethod/" method="post">
    {% csrf_token %}
    用户名：<input name="username" type="text"><br>
    密 码：<input name="password" type="password"><br>
    <input type="submit" value="登录">
</form>
</body>
</html>